<%@ page language="java" import="com.gin.util.*" pageEncoding="UTF-8" %>
 <%@ page language="java" import="java.util.*" %>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@ taglib prefix="ssm" uri="http://ssm" %>
 <%@ include file="/head.jsp" %>


<script src="js/jquery.validate.js"></script>

<div>
    <div class="panel panel-default">
        <div class="panel-heading">
            <span class="titles"> 添加考试结果 </span>
        </div>
        <div class="panel-body">
            <form action="kaoshijieguo.do?ac=update" method="post" name="form1" id="form1">
                <!-- form 标签开始 -->

                <input type="hidden" name="shijuanid" value="${mmm.shijuanid}" />
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">试卷编号</label>
                        <div class="col-sm-10">${mmm.shijuanbianhao}<input type="hidden" id="shijuanbianhao" name="shijuanbianhao" value="${Info.html(mmm.shijuanbianhao)}" /></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">试卷名称</label>
                        <div class="col-sm-10">
                            ${mmm.shijuanmingcheng}<input type="hidden" id="shijuanmingcheng" name="shijuanmingcheng" value="${Info.html(mmm.shijuanmingcheng)}" />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">所属科目</label>
                        <div class="col-sm-10">
                            <ssm:sql var="mapkemu19" type="find">SELECT kemumingcheng,id FROM kemu where id='${mmm.suoshukemu}'</ssm:sql>${mapkemu19.kemumingcheng}<input
                                type="hidden"
                                id="suoshukemu"
                                name="suoshukemu"
                                value="${Info.html(mmm.suoshukemu)}"
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">课程名称</label>
                        <div class="col-sm-10">
                            ${mmm.kechengmingcheng}<input type="hidden" id="kechengmingcheng" name="kechengmingcheng" value="${Info.html(mmm.kechengmingcheng)}" />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">章节名称</label>
                        <div class="col-sm-10">
                            ${mmm.zhangjiemingcheng}<input type="hidden" id="zhangjiemingcheng" name="zhangjiemingcheng" value="${Info.html(mmm.zhangjiemingcheng)}" />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">发布人</label>
                        <div class="col-sm-10">${mmm.faburen}<input type="hidden" id="faburen" name="faburen" value="${Info.html(mmm.faburen)}" /></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">考试编号</label>
                        <div class="col-sm-10">
                            <input
                                type="text"
                                class="form-control"
                                placeholder="输入考试编号"
                                style="width: 150px"
                                readonly="readonly"
                                id="kaoshibianhao"
                                name="kaoshibianhao"
                                value="${Info.html(mmm.kaoshibianhao)}"
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">题目编号</label>
                        <div class="col-sm-10">
                            <input
                                type="text"
                                class="form-control"
                                placeholder="输入题目编号"
                                style="width: 150px"
                                id="timubianhao"
                                name="timubianhao"
                                value="${Info.html(mmm.timubianhao)}"
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">标题</label>
                        <div class="col-sm-10">
                            <textarea style="width: 80%; height: 120px" class="form-control" placeholder="输入标题" id="biaoti" name="biaoti">${Info.html(mmm.biaoti)}</textarea>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">类型</label>
                        <div class="col-sm-10">
                            <select class="form-control class_leixing31" data-value="${Info.html(mmm.leixing)}" id="leixing" name="leixing" style="width: 250px">
                                <option value="单选题">单选题</option>
                                <option value="多选题">多选题</option>
                                <option value="判断题">判断题</option>
                                <option value="填空题">填空题</option>
                                <option value="简答题">简答题</option>
                            </select>
                            <script>
                                $(".class_leixing31").val($(".class_leixing31").attr("data-value"));
                            </script>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">答案</label>
                        <div class="col-sm-10">
                            <textarea style="width: 80%; height: 120px" class="form-control" placeholder="输入答案" id="daan" name="daan">${Info.html(mmm.daan)}</textarea>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">得分<span style="color: red">*</span></label>
                        <div class="col-sm-10">
                            <input
                                type="text"
                                class="form-control"
                                placeholder="输入得分"
                                style="width: 150px"
                                data-rule-required="true"
                                data-msg-required="请填写得分"
                                id="defen"
                                name="defen"
                                value="${Info.html(mmm.defen)}"
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">字母</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="输入字母" style="width: 150px" id="zimu" name="zimu" value="${Info.html(mmm.zimu)}" />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs">考试人</label>
                        <div class="col-sm-10">
                            <input
                                type="text"
                                class="form-control"
                                placeholder="输入考试人"
                                style="width: 150px"
                                readonly="readonly"
                                id="kaoshiren"
                                name="kaoshiren"
                                value="${mmm.kaoshiren}"
                            />
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="row">
                        <label style="text-align: right" class="col-sm-2 hiddex-xs"> </label>
                        <div class="col-sm-10">
                            <input name="id" value="${mmm.id}" type="hidden" />
                            <input name="referer" value="<%=request.getHeader("referer") %>" type="hidden" />
                            <input name="updtself" value="${updtself}" type="hidden" />

                            <button type="submit" class="btn btn-primary" name="Submit">提交</button>
                            <button type="reset" class="btn btn-default" name="Submit2">重置</button>
                            <button type="button" class="btn btn-default" onclick="history.back()">返回</button>
                        </div>
                    </div>
                </div>

                <!--form标签结束-->
            </form>

            <script>
                $(function () {
                    $("#form1").validate();
                });
            </script>
        </div>
    </div>
</div>

<%@ include file="/foot.jsp" %>

